//
//  APIBase.h
//  TencentOAuthDemo
//
//  Created by cloudxu on 11-8-24.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TencentRequest.h"
#import "APIResponse.h"

@interface APIBase : NSObject <TencentRequestDelegate>{
	TencentRequest* _request;
	
	NSString*		_httpMethod;
	id				_target;
	SEL				_selector;
	int				_seq;
}

@property (nonatomic, retain) NSString* httpMethod;
@property (nonatomic, assign) id target;
@property (nonatomic, assign) SEL selector;
@property (nonatomic, assign) int seq;

- (id)initWithTarget:(id)target
		 andSelector:(SEL)selector
	   andHttpMethod:(NSString*)method;

- (TencentRequest*)openUrl:(NSString *)url
					 token:(NSString *)token
					openid:(NSString *)openid
					 appid:(NSString *)appid
					params:(NSMutableDictionary *)params;
@end
